package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.approvedMapper;
import com.ruoyi.system.domain.approved;
import com.ruoyi.system.service.IapprovedService;

/**
 * 已发布活动Service业务层处理
 * 
 * @author lzq
 * @date 2025-08-06
 */
@Service
public class approvedServiceImpl implements IapprovedService 
{
    @Autowired
    private approvedMapper approvedMapper;

    /**
     * 查询已发布活动
     * 
     * @param id 已发布活动主键
     * @return 已发布活动
     */
    @Override
    public approved selectapprovedById(Long id)
    {
        return approvedMapper.selectapprovedById(id);
    }

    /**
     * 查询已发布活动列表
     * 
     * @param approved 已发布活动
     * @return 已发布活动
     */
    @Override
    public List<approved> selectapprovedList(approved approved)
    {
        return approvedMapper.selectapprovedList(approved);
    }

    /**
     * 新增已发布活动
     * 
     * @param approved 已发布活动
     * @return 结果
     */
    @Override
    public int insertapproved(approved approved)
    {
        return approvedMapper.insertapproved(approved);
    }

    /**
     * 修改已发布活动
     * 
     * @param approved 已发布活动
     * @return 结果
     */
    @Override
    public int updateapproved(approved approved)
    {
        return approvedMapper.updateapproved(approved);
    }

    /**
     * 批量删除已发布活动
     * 
     * @param ids 需要删除的已发布活动主键
     * @return 结果
     */
    @Override
    public int deleteapprovedByIds(Long[] ids)
    {
        return approvedMapper.deleteapprovedByIds(ids);
    }

    /**
     * 删除已发布活动信息
     * 
     * @param id 已发布活动主键
     * @return 结果
     */
    @Override
    public int deleteapprovedById(Long id)
    {
        return approvedMapper.deleteapprovedById(id);
    }
}
